<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<jsp:include page="/share/top.jsp" />
	<div style="padding:20px">
	<table class="layui-table" border='1'>
		<tbody>
			<tr>
				<td>业主编号：</td>
				<td><c:out value="${TblOwnerDimForm.ownerCode}" /></td>
			</tr>
			<tr>
				<td>业主名称：</td>
				<td><c:out value="${TblOwnerDimForm.ownerName}"></c:out></td>
			</tr>
			<tr>
				<td>业主性别：</td>
				<td><c:choose>
						<c:when test="${TblOwnerDimForm.ownerSex=='0'}">男</c:when>
						<c:when test="${TblOwnerDimForm.ownerSex=='1'}">女</c:when>
						<c:otherwise></c:otherwise>
					</c:choose></td>
			</tr>
			<tr>
				<td>身份证号码：</td>
				<td><c:out value="${TblOwnerDimForm.ownerNo}"></c:out></td>
			</tr>
			<!--  <tr>
				<td>出生日期：</td>
				<td><c:out value="${TblOwnerDimForm.ownerDate}"></c:out></td>
			</tr> -->
			<tr>
				<td>移动电话：</td>
				<td><c:out value="${TblOwnerDimForm.ownerMob}"></c:out></td>
			</tr>
			<tr>
				<td>房间信息：</td>
				<td>
					<%-- <c:forEach var="room" items="${roomList}">
		<a href="<%=path%>/roomDim.do?method=viewTblRoomDim&roomCode=<c:out value='${room.roomCode}'/>&unitCode=<c:out value='${room.unitCode}'/>&commCode=<c:out value='${room.commCode}'/>&areaCode=<c:out value='${room.areaCode}'/>&buildingCode=<c:out value='${room.buildingCode}'/>">
			<c:out value="${room.roomCode}"/>
		</a>
		</c:forEach> --%> <c:out value="${TblOwnerDimForm.roomInfo}"></c:out>
				</td>
			</tr>
			<tr>
				<td>门禁卡信息：</td>
				<td>
					 <c:out value="${TblOwnerDimForm.cardId}"></c:out>
				</td>
			</tr>
		</tbody>
	</table>
		<c:if test="${isApproved}">
			<input type="button" value="通过" class="layui-btn layui-btn-small layui-btn-normal"
				   onclick="document.location.href='/owner/approved.x?ownerCode=${TblOwnerDimForm.ownerCode }';">
		</c:if>
		<input type="button" value="返回" class="layui-btn layui-btn-small" onclick="back()">
	</div>


<jsp:include page="/share/foot.jsp" />
<script>
	function back() {
        let index = parent.layer.getFrameIndex(window.name);
        parent.layer.close(index);
    }
</script>
